package com.googlecode.placesapiclient.client.entity;

/**
 */
public class MatchedSubstring {

    private Integer length;
    private Integer offset;

    public MatchedSubstring(Integer length, Integer offset) {
        this.length = length;
        this.offset = offset;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("MatchedSubstring{");
        sb.append("length=").append(length);
        sb.append(", offset=").append(offset);
        sb.append('}');
        return sb.toString();
    }
}
